package com.simple.datax.flow.dao.ibatis.impl;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.simple.datax.flow.dao.ibatis.FlowActivityInstanceDao;
import com.simple.datax.flow.dao.ibatis.model.FlowActivity;
import com.simple.datax.flow.dao.ibatis.model.FlowActivityInstance;

public class FlowActivityInstanceDaoImpl extends SqlMapClientDaoSupport
		implements FlowActivityInstanceDao {

	public FlowActivityInstanceDaoImpl() {
		super();
	}

	@Override
	public void saveFlowActivityInstance(
			FlowActivityInstance flowActivityInstance) {
		getSqlMapClientTemplate().insert("saveFlowActivityInstance",
				flowActivityInstance);
	}

	public List<FlowActivityInstance> getFlowActivityInstanceListByTaskid(
			String taskid) {
		List<FlowActivityInstance> FlowActivityInstanceList = getSqlMapClientTemplate()
		.queryForList("getFlowActivityInstanceListByTaskid", taskid);
		return FlowActivityInstanceList;
	}
}